package cn.oms.dict.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("data_code_serial_number")
@ApiModel(value="DataCodeSerialNumber对象", description="")
public class DataCodeSerialNumber implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID(新增生成)")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "数据ID（用于服务器查找）")
    @TableField("DATA_ID")
    private String dataId;

    @ApiModelProperty(value = "数据CODE(前缀+序号)")
    @TableField("DATA_CODE")
    private String dataCode;

    @ApiModelProperty(value = "数据名称（中文）")
    @TableField("DATA_NAME_CN")
    private String dataNameCn;

    @ApiModelProperty(value = "数据名称（英文）")
    @TableField("DATA_NAME_EN")
    private String dataNameEn;

    @ApiModelProperty(value = "数据前缀(一般为数据名称缩写或者拼音首字母)")
    @TableField("DATA_PREFIX")
    private String dataPrefix;

    @ApiModelProperty(value = "数据序号位数（6位等）")
    @TableField("DATA_DIGIT")
    private Integer dataDigit;

    @ApiModelProperty(value = "数据序号（初始值0或者00等等）")
    @TableField("DATA_NUM")
    private String dataNum;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
